import {configureStore} from '@reduxjs/toolkit';
import demoReducer from './slices/demoSlice';
import systemThemeReducer from './slices/systemThemeSlice';

export const store = configureStore({
    reducer: {
        systemTheme: systemThemeReducer,
        demo: demoReducer,
    },
});

// 封装RootState
export type RootState = ReturnType<typeof store.getState>;
// 封装Dispatch
export type AppDispatch = typeof store.dispatch;
